package com.heu.blood.storge.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heu.blood.common.utils.PageUtils;
import com.heu.blood.common.utils.R;
import com.heu.blood.match.entity.BloodInformationEntity;
import com.heu.blood.storge.dto.BloodOutStorageDTO;
import com.heu.blood.storge.entity.BloodOutStorgeEntity;
import com.heu.blood.storge.vo.BloodUrgentOutStorageVo;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 *
 *
 * @author lyj
 * @email lyj@heu.com
 * @date 2023-06-16 00:33:53
 */
public interface BloodOutStorgeService extends IService<BloodOutStorgeEntity> {

    PageUtils queryPage(BloodOutStorageDTO bloodOutStorageDTO);

    //血液出库

    boolean bloodOutStorge(Map<String, Object> params);

    //出库流水账
    PageUtils queryPageMultipleTable(Map<String, Object> params);

    /**
     * 紧急出库
     * @param bloodUrgentOutStorageVo 紧急出库信息
     * @return 0成功 其他失败
     */
    int urgentOutStorage(BloodUrgentOutStorageVo bloodUrgentOutStorageVo);

     int newSave(BloodOutStorgeEntity bloodOutStorge);
}

